const common = require('../../utils/common')

//index.js
//获取应用实例
const app = getApp()



Page({
  data: {
    msg: "太原2001",
    datalist: [{
      id: 1,
      name: "taiyuan"
    }, {
      id: 2,
      name: "beijing"
    }],
    showMap: false,
    user:{
      username:'xiaoming',
      age:20
    }
  },
  onHide() {
    console.log('index hide')
  },
  onShow() {},
  onLoad: function () {

  },
  onReady() {
    console.log(common.getMsg())
    console.log(common.sayHello('xiaoming'))
  },
  golog() {
    wx.switchTab({
      url: '/pages/logs/logs'
    })
  },
  changeMsg() {
    this.setData({
      msg: '太原666'
    })
  }


})